<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8"/>
		<title>函数返回值</title>
	</head>
	<body>
		<script type="text/javascript">
		function add(a,b){
			var result = function(){
				return a+b;
			}
			return result;
		}
		var a = add(3,4);
		console.log(a);
		console.log(a());
		
		</script>
	</body>
</html>